package com.tengju.bff.interfaces.covercharge.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tengju.bff.interfaces.covercharge.dto.ServiceAccountDTO;
import com.tengju.bff.interfaces.covercharge.entity.po.ServiceAccount;
import com.tengju.bff.interfaces.covercharge.entity.vo.AdminServiceAccountQueryVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author fwy
 * @since 2020-02-25
 */
public interface ServiceAccountMapper extends BaseMapper<ServiceAccount> {

    List<AdminServiceAccountQueryVo> queryPageByIdCode(Page pagination, @Param("codeId") String codeId);

    List<ServiceAccountDTO> getAccountInfoByIdCodes(@Param("idCodeList") List idCodeList,@Param("accountType") Integer accountType);

    ServiceAccountDTO batchGetBalanceByIdCodeAndType(@Param("idCode") Integer idCode,@Param("accountType") Integer accountType);

}
